from django.db import models


# Create your models here.
class User(models.Model):
    username = models.CharField(verbose_name='用户名', max_length=45)
    pwd = models.CharField(verbose_name='密码', max_length=45)
    nickname = models.CharField(verbose_name='昵称', max_length=45)
    # 默认为0,0为接单用户
    identity = models.IntegerField(verbose_name='用户身份', default=0)

    def __str__(self):
        return self.nickname

    class Meta:
        verbose_name_plural = '用户表'
        db_table = 'user'
